package com.czl.elm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Data
@Document("redShopParper")
@NoArgsConstructor
@AllArgsConstructor
public class RedShopParper {
    @Id
    @ApiModelProperty("红包类型id")
    private String redShopParperId;
    @ApiModelProperty("商店id")
    private Integer shopId;
    @ApiModelProperty("商店图片url")
    private String shopUrl;
    @ApiModelProperty("起始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Alisa/Shanghai")
    private LocalDateTime startTime;
    @ApiModelProperty("中止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Alisa/Shanghai")
    private LocalDateTime endTime;
    @ApiModelProperty("经历时间/秒")
    private Integer afterTime;
    @ApiModelProperty("满减上限，满50减30中的50")
    private Integer fullReduction;
    @ApiModelProperty("满减金额，满50减30中的30")
    private Integer reduction;

    @ApiModelProperty("红包状态,0/1：不发放/正在发放")
    private Integer enable;
}
